/**
 * jims
 */
package com.jims.master.modules.base.user.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.base.user.entity.SysDepartment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 科室表DAO接口
 * @author xueyx
 * @version 2017-06-01
 */
@MyBatisDao
public interface SysDepartmentDao extends CrudDao<SysDepartment> {
    public SysDepartment getParts(@Param("depNo") String depNo);

    public List<SysDepartment> getSysDepartmentList(SysDepartment parent);

    /**
     * 根据父科室查询子科室
     * @param parent
     * @author 陈涛
     * @return
     */
    public SysDepartment getByParent(@Param("parent") String parent);

    public List<SysDepartment> getByParentId(@Param("parentId") String parentId);

    public List<SysDepartment> getParentPart();

    public List<SysDepartment> getSysDepartment();

    public String getDepNo(@Param("parts") String parts);
}